package com.jokelandave.sportzbetz.client.views;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Widget;
import com.jokelandave.sportzbetz.client.presenters.MenuPresenter.IMenuView;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Label;

public class MenuView extends Composite implements IMenuView {

	private static MenuViewUiBinder uiBinder = GWT
			.create(MenuViewUiBinder.class);
	
	@UiField Button homeButton;
	@UiField Button profileButton;
	@UiField Button groupsButton;
	@UiField Button logoutButton;
	@UiField Label usernameLabel;

	interface MenuViewUiBinder extends UiBinder<Widget, MenuView> {
	}

	public MenuView() 
	{
		initWidget(uiBinder.createAndBindUi(this));
	}

	@Override
	public HasClickHandlers getProfileButton() 
	{
		return profileButton;
	}

	@Override
	public HasClickHandlers getAccoutButton() 
	{
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public HasClickHandlers getHomeButton() 
	{
		return homeButton;
	}

	@Override
	public HasClickHandlers getGroupsButton() 
	{
		return groupsButton;
	}
	
	@Override
	public HasClickHandlers getLogoutButton() 
	{
		return logoutButton;
	}

	@Override
	public HasText getUserNameLabel() 
	{
		return usernameLabel;
	}

}
